home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / clipper / funcky.zip / VIEW.DOC < prev    next >
Text File  |  1988-11-13  |  48KB  |  637 lines

  1.           FUNCky Demo Program Copyright dLESKO ASSOCIATES 1988. All Rights
  2.           Reserved. No part of this program may be distributed for any
  3.           purpose other than to demonstrate the capabilities of the FUNCky
  4.           Library for Clipper
  5.           
  6.           View is a sample program written using functions from the FUNCky
  7.           library for Clipper that demonstrates usage of the mouse
  8.           functions, programming for multiple video modes, font loading and
  9.           in general the basic principles when creating dropdown tear off
  10.           menus similar to the Macintosh interface. With view you can view
  11.           text files in moveable and resizeable windows. View supports
  12.           almost every video mode you can throw at it (except graphics
  13.           modes) with no special programming. If you have an EGA or VGA and
  14.           your adaptor supports 43, 50 or 60 line mode, View will love it.
  15.           If you can go up to 132 columns, you can also see how Clipper can
  16.           now work in those modes as well.
  17.           
  18.           To start View, simply type View and optionally the drive letter
  19.           of the drive you wish to view text files on. As in the sequence:
  20.           
  21.                View C: <return>
  22.           
  23.           Once View has started, a status line on the bottom of the screen
  24.           displays the currently selected drive, path and filename. To view
  25.           a file, select the directory you want to view, then select the
  26.           file, then select view from the menu and a window will open
  27.           displaying the contents of the text file. You can bring up
  28.           multiple views of the same text file by pressing F1 after you
  29.           display the first view window. The maximum
  30.           number of windows you can open is 4. Use the mouse to move the
  31.           windows to make room for the new window before you open a new
  32.           window since only the top window is active.
  33.           
  34.           The various aspects of the mouse functions can be demonstrated as
  35.           well. If you have a mouse, you can click on any option to pull
  36.           down the sub menu. To select a sub menu item, just click on that
  37.           item and it is selected. The idea of tear off drop menus is
  38.           accomplished by placing the mouse cursor in the middle of the sub
  39.           menu and pressing the right mouse button. While holding it down
  40.           you can drag the sub menu anywhere on the screen you like. You
  41.           can also re-size the drop down menu by placing the mouse cursor
  42.           on the right border of the box and while holding down the right
  43.           mouse button, drag the box's border to the right or left. To
  44.           display more lines of the drop down menu, place the mouse cursor
  45.           on the bottom edge of the box border and while holding down the
  46.           right mouse button, pull the box border up and down. Another
  47.           type of moveable window is available. In the mode window you
  48.           can specify Macintosh like or normal. Macintosh windows move around
  49.           a little faster since only the frame of the window is drawn as
  50.           you move it. The entire window is repainted only when you release
  51.           a key or mouse button.
  52.           
  53.           You can also use the mouse to emulate all the keyboard like
  54.           control keys. To scroll up the menu, click the left mouse button
  55.           while the mouse cursor is on the up arrow in the control panel.
  56.           To scroll down, click the left button while the mouse cursor is
  57.           on the down arrow. To page up and page down, click the right
  58.           mouse button on the up or down arrow. You can also pan the inner
  59.           contents of the menu if the contents exceed the width of the
  60.           menu. Just click the left or right button on the left and right
  61.           arrows in the control panel of the menu. The file view window
  62.           also emulates these same procedures, except that the panning
  63.           arrows move the contents of the text file in 8 column increments.
  64.           
  65.           If you don't have a mouse you can still emulate all the above
  66.           outlined options using the keyboard. Press the scroll lock key
  67.           and then use the arrow keys on the numeric keypad to move the
  68.           drop down menu, or the file view window to the position you like
  69.           on the screen. When it is in place, release the scroll lock key.
  70.           To expand the drop down menus, use the left shift key and the
  71.           arrow keys on the numeric keypad to expand or grow the dropdown.
  72.           the left and right arrow keys expand the box right and left while
  73.           the up and down arrow keys pull up or down the bottom of the
  74.           dropdown. To select menu items, you can scroll the highlight to
  75.           any item you want and press return to select it.
  76.           
  77.           That's about all there is to view. If you have an EGA or VGA
  78.           monitor, you can check out the various screen modes and fonts in
  79.           the MODE option on the main menu. Study the VIEW.PRG file to see
  80.           how it was done. Note that you cannot compile the source code if
  81.           you do not have the FUNCky Library for Clipper. The following
  82.           text outlines some of the capabilites of the library. A listing
  83.           of the table of contents list the major functions in the library.
  84.           Give it a looksee, if you like it I guess I'll be speaking to you
  85.           soon.....
  86.           
  87.           - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  88.           What is FUNCky you ask? - well, I think it's the neatest library
  89.           to ever come out for Clipper.....
  90.           
  91.           With FUNCky you have the largest array of functions ever
  92.           assembled in one place. You get top quality documentation on over
  93.           400 functions for Clipper. There are also around 30 or so re-
  94.           written Clipper functions. They have been written in tighter
  95.           faster code. With greater speed so you get increased options.
  96.           Like with FILE IO. The low level file funcitons in Clipper have
  97.           been completely re-written so that you can now do things like
  98.           store your menu options in text files that you can edit inside
  99.           the appplication using memoedit(). You can create help systems
  100.           that display text files in windows, use the fantastic flocate()
  101.           function to locate text strings in files, then use the speedy
  102.           freadline() to read the lines of text into a string. You could
  103.           use afileread() to load lines of text from a file into arrays.
  104.           All the low level file functions of course interact directly to
  105.           with Clipper's own ferror() function.
  106.           
  107.           You also get mouse support, not little dweeby functions to read a
  108.           mouse button or display a mouse cursor, but real mouse support.
  109.           use mx_choice() to emulate achoice() with scroll bars, a control
  110.           panel, resizing, dynamically expanding windows, grab the window
  111.           and move it. Display DBF files like dbedit() in the same type of
  112.           dynamic windows. Use the mouse to select records or scroll the
  113.           database. Grab the window and move it so you can pop up several
  114.           DBF scroll windows at once!, use mx_view() to view text files in
  115.           the same type of moveable-resizeable windows. Create popup,
  116.           dropdown, tear off, moveable, resizeable menus, etc. etc. etc.
  117.           All in all around 70 mouse functions to do almost anything you
  118.           want,
  119.           
  120.           You also get extensive video support. You can use as many video
  121.           pages as your adaptor supports, create virtual screens and
  122.           windows in memory, display menus on the monochrome screen and
  123.           color screen at the same time (if you have two monitors), write
  124.           programs in 43 and 50 line mode on your EGA or VGA adaptor with
  125.           full support of gets / menu to / savescreen() etc... Get 64
  126.           colors on